package com.sunwoda.springbootshiro.bean;

import com.sunwoda.springbootshiro.service.impl.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @program: springboot-shiro
 * @description: UserServiceBean
 * @author: SGR
 * @create: 2021-09-16 15:14
 **/
@Component
public class UserBean {

    @Autowired
    private UserServiceImpl userService;

    public static UserServiceImpl uService;

    @PostConstruct
    private void getUserService(){
        uService = this.userService;
    }
}
